package com.dk.em;
/** 返回*/
public enum ResultEnum {
    SUCCESS(10000,"操作成功"),
    ERROR(10001,"操作失败"),
    NOLOGIN(10002,"没有登录"),
    ARGS_ERROR(10003,"参数异常"),
    FALL_ERROR(10004,"熔断了"),
    TOO_MANY_REQUESTS(10006,"请求频繁"),
    GATEWAY_FALLBACK(10005,"网络异常");

    private Integer code;
    private String message;

    ResultEnum() {
    }

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
